#ifndef LOGICCONTROLSTRUCT_H
#define LOGICCONTROLSTRUCT_H

#include <QObject>
#include <QStringList>
#include "ControlPointStruct.h"
#include "ModeStruct.h"

class AcLogicControlStruct
{
public:
    AcLogicControlStruct();

    bool isOpen() const;
    void setIsOpen(bool isOpen);

    quint16 curTempAddress() const;
    void setCurTempAddress(const quint16 &curTempAddress);

    QString curMode() const;
    void setCurMode(const QString &curMode);

    ControlPointStruct closePoint() const;
    void setClosePoint(const ControlPointStruct &closePoint);

    ControlPointStruct openPoint() const;
    void setOpenPoint(const ControlPointStruct &openPoint);

    quint16 setTempAddress() const;
    void setSetTempAddress(const quint16 &setTempAddress);


    quint16 setTempValue() const;
    void setSetTempValue(const quint16 &setTempValue);

    quint16 errorRange() const;
    void setErrorRange(const quint16 &errorRange);

    QList<ModeStruct> modeList() const;
    void setModeList(const QList<ModeStruct> &modeList);

private:
    bool m_isOpen;
    quint16 m_curTempAddress;
    QString m_curMode;
    ControlPointStruct m_closePoint;
    ControlPointStruct m_openPoint;

    quint16 m_setTempAddress;
    quint16 m_setTempValue;
    quint16 m_errorRange;

    QList<ModeStruct> m_modeList;

};

#endif // LOGICCONTROLSTRUCT_H
